{extend name="layout/main-block" /}

<!-- main content start -->
{block name="content"}
<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <ol class="breadcrumb">
                <li class="h4"><a href="">首页</a></li>
                <li class="h4">角色管理</li>
                <li class="h4">添加角色</li>
            </ol>
        </div>
        <div class="row content-main">
            <div class="col-sm-4">
                <form class="form-horizontal" action="{:url('role_create')}" method="post">
                    <!-- <div class="form-group">
                        <label for="inputName" class="col-sm-3 control-label">请选择父级</label>
                        <div class="col-sm-9">
                            <select name="pid" class="form-control">
                                <option value="0">没有父级</option>
                                {notempty name='roles'}
                                {volist name="roles" id="v"}
                                <option value="{$v.role_id}">{$v.html}{$v.name}</option>
                                {/volist}
                                {/notempty}
                            </select>
                        </div>
                    </div> -->

                    <div class="form-group">
                        <label for="inputName" class="col-sm-3 control-label">角色名称</label>
                        <div class="col-sm-9">
                            <input type="text" name="name" class="form-control" id="inputName" placeholder="角色名称...">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputRemark" class="col-sm-3 control-label">角色描述</label>
                        <div class="col-sm-9">
                            <textarea name="remark" class="form-control" id="inputRemark" cols="30" rows="5" style="resize: none;" placeholder="角色名称..."></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button type="submit" class="btn btn-primary">创 建</button>
                            <a href="{:url('role')}" role='button' class="btn btn-info">返回列表</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </section>
</section>
{/block}